package cn.yunlang.zhangZhongFei.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 兑奖记录表
 *
 * @author ·
 * @since 2025-05-27 09:54:49
 */
@Data
@TableName("t_exchange_award")
@ApiModel(value = "ExchangeAward对象", description = "兑奖记录表")
public class ExchangeAward implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "id", hidden = true)
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("用户id")
  @JsonIgnore
  @TableField("user_id")
  private Long userId;

  @ApiModelProperty("奖品id")
  @TableField("award_id")
  private Long awardId;

  @ApiModelProperty("奖品名称")
  @TableField("award_name")
  private String awardName;

  @ApiModelProperty("奖品价值")
  @TableField("award_price")
  private BigDecimal awardPrice;

  @ApiModelProperty("奖品图片")
  @TableField("award_pic")
  private String awardPic;

  @ApiModelProperty("状态（0=待发货，1=已发货，2=已收货）")
  @TableField("state")
  private String state;

  @ApiModelProperty("快递公司")
  @TableField("express_company")
  private String expressCompany;

  @ApiModelProperty("快递单号")
  @TableField("express_no")
  private String expressNo;

  @ApiModelProperty("收货地址")
  @TableField("address")
  private String address;

  @ApiModelProperty("创建时间")
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
}
